def savedata(name,data):
    with open(name,"wb") as f:
        f.write(data)